import request from '@/utils/request'

// 查询出场回调列表
export function listTcOut(query) {
  return request({
    url: '/energy/tcOut/list',
    method: 'get',
    params: query
  })
}

// 查询出场回调详细
export function getTcOut(parkId) {
  return request({
    url: '/energy/tcOut/' + parkId,
    method: 'get'
  })
}

// 新增出场回调
export function addTcOut(data) {
  return request({
    url: '/energy/tcOut',
    method: 'post',
    data: data
  })
}

// 修改出场回调
export function updateTcOut(data) {
  return request({
    url: '/energy/tcOut',
    method: 'put',
    data: data
  })
}

// 删除出场回调
export function delTcOut(parkId) {
  return request({
    url: '/energy/tcOut/' + parkId,
    method: 'delete'
  })
}
